package com.lyf.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyf.common.core.annotation.Excel;
import com.lyf.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 积分兑换对象 t_integral
 * 
 * @author lyf
 * @date 2023-04-08
 */
public class Integral extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分id */
    private Long integralId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 会员id */
    @Excel(name = "会员id")
    private Long numberId;

    /** 超市id */
    @Excel(name = "超市id")
    private Long supermarketId;

    /** 总积分 */
    @Excel(name = "总积分")
    private String integralTotal;


    /** 兑换金额 */
    @Excel(name = "原价金额")
    private BigDecimal originalPrice;

    /** 兑换金额 */
    @Excel(name = "兑换后金额")
    private BigDecimal price;

    /** 兑换金额 */
    @Excel(name = "兑换金额")
    private BigDecimal money;

    private String supermarketName;

    private String account;

    public String getSupermarketName() {
        return supermarketName;
    }

    public void setSupermarketName(String supermarketName) {
        this.supermarketName = supermarketName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setIntegralId(Long integralId)
    {
        this.integralId = integralId;
    }

    public Long getIntegralId() 
    {
        return integralId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setNumberId(Long numberId) 
    {
        this.numberId = numberId;
    }

    public Long getNumberId() 
    {
        return numberId;
    }
    public void setSupermarketId(Long supermarketId) 
    {
        this.supermarketId = supermarketId;
    }

    public Long getSupermarketId() 
    {
        return supermarketId;
    }
    public void setIntegralTotal(String integralTotal) 
    {
        this.integralTotal = integralTotal;
    }

    public String getIntegralTotal()
    {
        return integralTotal;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("integralId", getIntegralId())
            .append("orderId", getOrderId())
            .append("numberId", getNumberId())
            .append("supermarketId", getSupermarketId())
            .append("integralTotal", getIntegralTotal())
            .append("money", getMoney())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("originalPrice",getOriginalPrice())
            .append("Price",getPrice())
            .append("account",getAccount())
            .append("supermarketName",getSupermarketName())
            .toString();
    }
}
